/**
 * 
 */
package com.ermax.aircond.common.service.impl;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ermax.aircond.common.dao.ReadMachineDataDao;
import com.ermax.aircond.common.domain.ReadMachineData;
import com.ermax.aircond.common.service.ReadMachineDataService;

/**
 * @author Eric
 *
 */

@Service("readMachineDataService")
public class ReadMachineDataServiceImpl implements ReadMachineDataService {

	private static final Logger logger = Logger.getLogger(ReadMachineDataServiceImpl.class);
	
	@Autowired
	private ReadMachineDataDao readMachineDataDao;
	
	/* (non-Javadoc)
	 * @see com.ermax.aircond.common.service.ReadMachineDataService#selectByNid(int)
	 */
	@Override
	public ReadMachineData selectByNid(int nid) {
		return readMachineDataDao.getByNid(nid);		
	}

	/* (non-Javadoc)
	 * @see com.ermax.aircond.common.service.ReadMachineDataService#select(int)
	 */
	@Override
	public ReadMachineData select(int idx) {		
		return readMachineDataDao.getById(idx);
	}

}
